package com.xhsj.user.pms.oareply.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xhsj.user.pms.oareply.vo.CorrectionFileListVo;
import org.apache.ibatis.annotations.Mapper;
import com.xhsj.user.pms.oareply.entity.TbPamPatentOaRecheckFile;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
/**
 * <p>
 * 专利OA复审文件 Mapper 接口
 * </p>
 *
 * @author liuqinghua
 * @since 2021-07-28
 */
@Mapper
public interface TbPamPatentOaRecheckFileMapper extends BaseMapper<TbPamPatentOaRecheckFile> {

    /**
     * @Description: 根据业务id删除
     * @Author: liuqinghua
     * @Date: 2021/8/3
     */
    void deleteByDataId(@Param("dataId") Long dataId);

    /**
     * @Description:专利OA驳回-获取驳回文件
     * @Author: liuqinghua
     * @Date: 2021/8/4
     */
    IPage<CorrectionFileListVo> findReCheckFileList(Page<CorrectionFileListVo> page, @Param("dataId") Long dataId);

    /**
     * @Description:专利OA驳回-获取驳回文件不分页
     * @Author: liuqinghua
     * @Date: 2021/8/4
     */
    List<CorrectionFileListVo> findReCheckFileList(@Param("dataId") Long dataId);
}
